import request from '@/utils/request'
/*
 * 学习数据统计
 */
export function getStudyStatisticsByCourse(data) {
  return request({
    url: '/admin/statistics/getStudyStatisticsByCourse',
    method: 'post',
    data:data
    
  })
}

/*
 * 课程维度
 */
export function getCourseStatisticsList(data) {
  return request({
    url: '/admin/statistics/getCourseStatisticsList',
    method: 'post',
    data:data
    
  })
}

/*
 * 学员维度
 */
export function getUserStudyStatistics(data) {
  return request({
    url: '/admin/statistics/getUserStudyStatistics',
    method: 'post',
    data:data
    
  })
}


/* 学习详情 */
export function getStudyDetail(data) {
  return request({
    url: '/admin/statistics/getStudyDetail',
    method: 'get',
    params: data   
  })
}

/* 搜索课程 */
export function getCourseList(data) {
  return request({
    url: '/course/list',
    method: 'get',
    params: data   
  })
}

/* 导出学习详情 */
export function exportStudyDetail(data) {
  return request({
    url: '/admin/statistics/exportStudyDetail',
    method: 'post',
    data: data   
  })
}

